package com.hardy.job;

/**
 * Author: fuxh3@lenovo.com
 * Date: Created in 2017/10/25 0025
 */
public class Test {
    private int a = 1;
    int aa=1;
    double acd=5.3e12;
    int b = 2;
    static int c = 3;
    static int i;
    final float j=1.2f;
    static boolean k;
    public static void main(String[] args) {
       Integer a=127;
       Integer b=127;
        System.out.println(a==b);
    }

    private static void test1() {

    }

    private static void test2() {
        test1();
    }

    private void test3() {
        test1();
    }

    static class A {
        protected int value;

        public A(int v) {
            setValue(v);
        }

        public void setValue(int value) {
            this.value = value;
        }

        public int getValue() {
            try {
                value++;
                return value;
            } catch (Exception e) {
                System.out.println(e.toString());
            } finally {
                this.setValue(value);
                System.out.println(value);
            }
            return value;
        }
    }


    static class B extends A {
        public B() {
            super(5);
            int res = getValue() - 3;
            setValue(res);
        }

        public void setValue(int value) {
            super.setValue(2 * value);
        }
    }

}
